package cn.zglbk.network.channel;

import cn.zglbk.network.param.GameMessagePackage;
import cn.zglbk.network.param.IGameMessage;
import io.netty.util.concurrent.Promise;

public interface GameChannelOutboundHandler extends GameChannelHandler {
    
    void writeAndFlush(AbstractGameChannelHandlerContext ctx, GameMessagePackage msg, GameChannelPromise promise) throws Exception;
    void writeRPCMessage(AbstractGameChannelHandlerContext ctx, IGameMessage gameMessage, Promise<IGameMessage> callback);
    void close(AbstractGameChannelHandlerContext ctx, GameChannelPromise promise);
   
}
